import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
		path: '/',
		name: '快步商家管理系统登录',
		component: () => import('../components/login.vue')
	},
	{
		path: '/Home',
		name: 'Home',
		component: () => import('../views/home.vue'),
		hidden: true,
	},
	//404
	{
		path: '/404',
		name: '找不到页面',
		component: () => import('../views/404'),
	}, {
		path: '/Index',
		component: () => import('../views/index.vue'),
		children: [
			//基础管理
			{
				path: '/merchantInfo',
				name: '商户信息',
				component: () => import('../views/systerSetting/merchantInfo'),
			},
			{
				path: '/wechatPay',
				name: '微信支付申请',
				component: () => import('../views/systerSetting/wechatPay'),
			},
			//账户管理
			{
				path: '/accountBlance',
				name: '账户余额',
				component: () => import('../views/accountManagement/accountBlance'),
			
			},
			{
				path: '/advancePayment',
				name: '账户明细',
				component: () => import('../views/advancePaymentMangment/advancePayment'),
			
			},
			{
				path: '/walletRechange',
				name: '预付金充值',
				component: () => import('../views/advancePaymentMangment/walletRechange'),
			},
			{
				path: '/boundList',
				name: '保证金管理',
				component: () => import('../views/boundManger/index'),
			},
			{
				path: '/boundDeductionList',
				name: '保证金扣除列表',
				component: () => import('../views/boundManger/boundDeductionList'),
			},
			{
				path: '/accountInfo',
				name: '账户糖果明细',
				component: () => import('../views/accountManagement/accountInfo'),
			
			},
			//账户管理
			{
				path: '/withdraw',
				name: '账户糖果划转记录',
				component: () => import('../views/accountManagement/withdraw'),
			
			},
			//商品管理
			{
				path: '/mallList',
				name: '商品管理',
				component: () => import('../views/mall/mallList'),

			},
			//运费模板
			{
				path: '/shipping',
				name: '运费模板',
				component: () => import('../views/mall/shipping'),
			
			},
			//收费模板
			{
				path: '/charge',
				name: '收费模板',
				component: () => import('../views/sameCityDelivery/charge'),
			},
			//商城分配记录
			{
				path: '/list',
				name: '分配列表',
				component: () => import('../views/merchantRecord/list'),
			},
			//订单管理
			{
				path: '/mallOrder',
				name: '订单列表',
				component: () => import('../views/orderManger/mallOrder'),
			
			},
			//售后单
			{
				path: '/afterSale',
				name: '售后单',
				component: () => import('../views/orderManger/afterSale'),
			
			},
			//活动管理
			{
				path: '/activity',
				name: '活动管理',
				component: () => import('../views/activity/index'),
			
			},
	// 增值服务营销服务套餐服务
			// {
			// 	path: '/activity',
			// 	name: '营销服务',
			// 	component: () => import('../views/activity/index'),
			
			// },
			{
				path: '/combo',
				name: '套餐服务',
				component: () => import('../views/valueAddedServices/combo'),
			},	
			//拼团
			{
				path: '/spellGroup',
				name: '拼团管理',
				component: () => import('../views/activity/spellGroup/index'),
			},
			{
				path: '/spellGroupChild',
				name: '子团列表',
				component: () => import('../views/activity/spellGroup/spellGroupChild'),
			},
			{
				path: '/spellGroupUser',
				name: '子团用户',
				component: () => import('../views/activity/spellGroup/spellGroupUser'),
			},{
				path: '/goldenBeanDetail',
				name: '金豆明细',
				component: () => import('../views/accountManagement/goldenBeanDetail'),
			},
		]
	}
]

const router = new VueRouter({
	mode: 'history',
	base: process.env.BASE_URL,
	routes
})

export default router
